﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;

namespace Controller
{
    public class MinutesLate
    {
        public DateTime Start()
        {
            return DateTime.Now;          
        }

        public DateTime Stop()
        {
            return DateTime.Now;
        }

        public TimeSpan GetMinutesLate( DateTime time)
        {
            TimeSpan startWork=new TimeSpan(9,0,0);
            TimeSpan minutesLate;
            return minutesLate = time.TimeOfDay - startWork;
        }
    }
}
